Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications
Differences
Some important differences between SpeedScript programming and Progress 4GL programming are:
- 4GL applications are usually state-aware, while SpeedScript applications are often stateless. The distinction between state-aware and stateless applications is discussed in Chapter 7, " Controlling WebSpeed Transactions."
- GUI widget events are not used in WebSpeed SpeedScript applications. Visual elements are handled by HTML, rather than as GUI widgets.
- The preprocessor
{&OUT}statement is used to output data to the HTML page, rather than theDISPLAYstatement. For information, see Chapter 4, " Handling DISPLAY Output."- In SpeedScript, all terminal-focused I/O is replaced by a block mode Web-oriented I/O, where the SpeedScript frame is the block data structure. Therefore, I/O blocking statements such as
UPDATEorPROMPT-FORcannot be used in SpeedScript applications. Similarly, the I/O blocking options of statements like theMESSAGE(VIEW-AS ALERT-BOX)andPAUSE(MESSAGE)statements are ignored.- Very few Progress 4GL events apply to WebSpeed applications, except database events. The one essential event in SpeedScript is
WEB-NOTIFY. However, in normal use, this event is handled exclusively by the agent control program (web-disp.p).WAIT-FORcannot be used for user input in SpeedScript applications.- Some procedures that are available through include files and the Insert Call button of the Section Editor are only appropriate for WebSpeed applications. Some of these are:
- SpeedScript includes special extensions, including a virtual Web output device (
“WEB”) to define Web page output streams to your Web server and theWEB-CONTEXTsystem handle to access the request environment. However, most of these extensions are wrapped in the API functions, method and event procedures, and preprocessor definitions provided with WebSpeed.These examples also rely on SpeedScript preprocessor references, especially
{&OUT}and{&DISPLAY}, to direct output to the WebSpeed-defined output stream,WebStream. You can find the definitions for these preprocessor references (and several others) ininstall-path/src/web/method/cgidefs.i. For more information on the{&DISPLAY}preprocessor reference, see Chapter 4, " Handling DISPLAY Output." For more information on the SpeedScript preprocessor and more advanced SpeedScript topics, see the OpenEdge Development: Progress 4GL Handbook .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |